package com.xiu.pojo;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

public class ExamSubject {
    private Integer examSubjectId;

    @NotEmpty(message="课程名不能为空")
    private String examSubjectName;

    private String examSubjectDescription;

    @NotNull(message="总题数不能为空")
    private Integer examSubjectTnumber;

    @NotNull(message="总时长不能为空")
    private Integer examSubjectTotaltime;

    @NotNull(message="总分不能为空")
    private Integer examSubjectSum;

   /* @NotNull(message="科目开放状态不能为空")*/
    private Integer examSubjectFlag;

    private Integer examSubjectDone;

    public Integer getExamSubjectId() {
        return examSubjectId;
    }

    public void setExamSubjectId(Integer examSubjectId) {
        this.examSubjectId = examSubjectId;
    }

    public String getExamSubjectName() {
        return examSubjectName;
    }

    public void setExamSubjectName(String examSubjectName) {
        this.examSubjectName = examSubjectName;
    }

    public String getExamSubjectDescription() {
        return examSubjectDescription;
    }

    public void setExamSubjectDescription(String examSubjectDescription) {
        this.examSubjectDescription = examSubjectDescription;
    }

    public Integer getExamSubjectTnumber() {
        return examSubjectTnumber;
    }

    public void setExamSubjectTnumber(Integer examSubjectTnumber) {
        this.examSubjectTnumber = examSubjectTnumber;
    }

    public Integer getExamSubjectTotaltime() {
        return examSubjectTotaltime;
    }

    public void setExamSubjectTotaltime(Integer examSubjectTotaltime) {
        this.examSubjectTotaltime = examSubjectTotaltime;
    }

    public Integer getExamSubjectSum() {
        return examSubjectSum;
    }

    public void setExamSubjectSum(Integer examSubjectSum) {
        this.examSubjectSum = examSubjectSum;
    }

    public Integer getExamSubjectFlag() {
        return examSubjectFlag;
    }

    public void setExamSubjectFlag(Integer examSubjectFlag) {
        this.examSubjectFlag = examSubjectFlag;
    }

    public Integer getExamSubjectDone() {
        return examSubjectDone;
    }

    public void setExamSubjectDone(Integer examSubjectDone) {
        this.examSubjectDone = examSubjectDone;
    }

	@Override
	public String toString() {
		return "ExamSubject [examSubjectId=" + examSubjectId + ", examSubjectName=" + examSubjectName
				+ ", examSubjectDescription=" + examSubjectDescription + ", examSubjectTnumber=" + examSubjectTnumber
				+ ", examSubjectTotaltime=" + examSubjectTotaltime + ", examSubjectSum=" + examSubjectSum
				+ ", examSubjectFlag=" + examSubjectFlag + ", examSubjectDone=" + examSubjectDone + "]";
	}
}